package edu.hitwh.respository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import edu.hitwh.entity.Librarian;

import java.util.*;

@Repository
public interface LibrarianRepository extends JpaRepository<Librarian, Long> {
    Optional<Librarian> findById(long id);
    Optional<Librarian> findByName(String name);
    Optional<Librarian> findByEmail(String email);
}